<?php
defined('BY_JYA') or exit('error');
$_RQ['op']=$_RQ['op']?$_RQ['op']:'get';
if($_RQ['op']=='get'){
	$item=$this->plugin_setting('bindmobile_credit');
	//print_r($item);exit();
	$return['item']=$item;
	$htmls=array(
		'type'=>'edit',
		'post'=>'set',
		'desc'=>'绑定手机号送积分',
		'edit'=>array(
			array('type'=>'switch','name'=>'open','title'=>'绑定手机号送积分'),
			array('type'=>'string','name'=>'credit1','title'=>'赠送积分','show'=>array('open'=>1)),
		)
	);
	$return['htmls']=$htmls;	
	exi($return);
}
if($_RQ['op']=='set'){
	$post=get_postdata();
	$this->plugin_setting('bindmobile_credit',$post);
	exi('设置成功');
}